package com.samuel.taskexecutor;


import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TaskService {

    @Async
    public void  executeAsyncTask(Integer i){
        System.out.println("我开始只系那个任务："+i);
    }

    @Async
    public void  executeAsyncTask2(Integer i){
        System.out.println("我开始executeAsyncTask2任务："+(i+1));
    }



}
